#ifndef __EMERGEHOOK_H
#define __EMERGEHOOK_H

#define DLL_EXPORT  __declspec(dllexport)


#define UNICODE 1
#include <windows.h>
#include <stdio.h>
LRESULT __stdcall CallWndProc(int nCode, WPARAM wParam, LPARAM lParam);
LRESULT __stdcall CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam);
BOOL CheckNoWnd(HWND hwnd);
#ifdef __cplusplus
extern "C"
{
#endif
	BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
	DLL_EXPORT UINT RegisterMsgHook(HWND hwnd);
	DLL_EXPORT void UnregisterMsgHook();

#ifdef __cplusplus
}
#endif

#pragma data_seg( ".shared" )
static HWND recWnd = NULL;
static HINSTANCE hookInst = NULL;
static HHOOK gRetHook = NULL;
static HHOOK gBeforeHook = NULL;
#pragma data_seg()
#pragma comment(linker, "/SECTION:.shared,RWS")

#endif
